package cn.stylefeng.guns.modular.business.mapper;

import cn.stylefeng.guns.modular.business.entity.CategoryContent;
import cn.stylefeng.guns.modular.business.model.params.CategoryContentParam;
import cn.stylefeng.guns.modular.business.model.result.CategoryContentResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 分类相关说明 Mapper 接口
 * </p>
 *
 * @author jwj
 * @since 2019-07-27
 */
public interface CategoryContentMapper extends BaseMapper<CategoryContent> {

    /**
     * 获取列表
     *
     * @author jwj
     * @Date 2019-07-27
     */
    List<CategoryContentResult> customList(@Param("paramCondition") CategoryContentParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jwj
     * @Date 2019-07-27
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CategoryContentParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jwj
     * @Date 2019-07-27
     */
    Page<CategoryContentResult> customPageList(@Param("page") Page page, @Param("paramCondition") CategoryContentParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jwj
     * @Date 2019-07-27
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CategoryContentParam paramCondition);

}
